package com.bjqh.edu.Bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Administrator on 2017/10/18.
 */

public class Stulist implements Parcelable {


    /**
     * data : [{"total":null,"sex":null,"weight":null,"cardimg":null,"cardnum":null,"nickname":"嗯嗯","passWord":"698d51a19d8a121ce581499d7b701668","header":"/sys/header//1508227268272.jpg","rows":null,"course":null,"id":1,"time":1506756205000,"school":"222","invitecode":null,"page":null,"age":22,"name":"王五","role":0,"gradeid":null,"teacher":{"id":1,"tcard":null,"status":null,"stars":null,"grade":{"uid":null,"total":null,"id":1,"time":1506756205000,"flag":null,"contentid":null,"page":null,"name":"王五","img":null,"cname":null,"rows":null},"ptime":null,"tcardimg":null,"qq":null,"intro":null},"mobile":"18369989485"}]
     * status : 200
     */

    private int status;
    private List<DataBean> data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {
        /**
         * total : null
         * sex : null
         * weight : null
         * cardimg : null
         * cardnum : null
         * nickname : 嗯嗯
         * passWord : 698d51a19d8a121ce581499d7b701668
         * header : /sys/header//1508227268272.jpg
         * rows : null
         * course : null
         * id : 1
         * time : 1506756205000
         * school : 222
         * invitecode : null
         * page : null
         * age : 22
         * name : 王五
         * role : 0
         * gradeid : null
         * teacher : {"id":1,"tcard":null,"status":null,"stars":null,"grade":{"uid":null,"total":null,"id":1,"time":1506756205000,"flag":null,"contentid":null,"page":null,"name":"王五","img":null,"cname":null,"rows":null},"ptime":null,"tcardimg":null,"qq":null,"intro":null}
         * mobile : 18369989485
         */

        private String total;
        private String sex;
        private String weight;
        private String cardimg;
        private String cardnum;
        private String nickname;
        private String passWord;
        private String header;
        private String rows;
        private String course;
        private int id;
        private long time;
        private String school;
        private String invitecode;
        private String page;
        private int age;
        private String name;
        private int role;
        private String gradeid;
        private TeacherBean teacher;
        private String mobile;

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getWeight() {
            return weight;
        }

        public void setWeight(String weight) {
            this.weight = weight;
        }

        public String getCardimg() {
            return cardimg;
        }

        public void setCardimg(String cardimg) {
            this.cardimg = cardimg;
        }

        public String getCardnum() {
            return cardnum;
        }

        public void setCardnum(String cardnum) {
            this.cardnum = cardnum;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getPassWord() {
            return passWord;
        }

        public void setPassWord(String passWord) {
            this.passWord = passWord;
        }

        public String getHeader() {
            return header;
        }

        public void setHeader(String header) {
            this.header = header;
        }

        public String getRows() {
            return rows;
        }

        public void setRows(String rows) {
            this.rows = rows;
        }

        public String getCourse() {
            return course;
        }

        public void setCourse(String course) {
            this.course = course;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public String getSchool() {
            return school;
        }

        public void setSchool(String school) {
            this.school = school;
        }

        public String getInvitecode() {
            return invitecode;
        }

        public void setInvitecode(String invitecode) {
            this.invitecode = invitecode;
        }

        public String getPage() {
            return page;
        }

        public void setPage(String page) {
            this.page = page;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getRole() {
            return role;
        }

        public void setRole(int role) {
            this.role = role;
        }

        public String getGradeid() {
            return gradeid;
        }

        public void setGradeid(String gradeid) {
            this.gradeid = gradeid;
        }

        public TeacherBean getTeacher() {
            return teacher;
        }

        public void setTeacher(TeacherBean teacher) {
            this.teacher = teacher;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public static class TeacherBean implements Parcelable {
            /**
             * id : 1
             * tcard : null
             * status : null
             * stars : null
             * grade : {"uid":null,"total":null,"id":1,"time":1506756205000,"flag":null,"contentid":null,"page":null,"name":"王五","img":null,"cname":null,"rows":null}
             * ptime : null
             * tcardimg : null
             * qq : null
             * intro : null
             */

            private int id;
            private String tcard;
            private String status;
            private String stars;
            private GradeBean grade;
            private String ptime;
            private String tcardimg;
            private String qq;
            private String intro;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getTcard() {
                return tcard;
            }

            public void setTcard(String tcard) {
                this.tcard = tcard;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public String getStars() {
                return stars;
            }

            public void setStars(String stars) {
                this.stars = stars;
            }

            public GradeBean getGrade() {
                return grade;
            }

            public void setGrade(GradeBean grade) {
                this.grade = grade;
            }

            public String getPtime() {
                return ptime;
            }

            public void setPtime(String ptime) {
                this.ptime = ptime;
            }

            public String getTcardimg() {
                return tcardimg;
            }

            public void setTcardimg(String tcardimg) {
                this.tcardimg = tcardimg;
            }

            public String getQq() {
                return qq;
            }

            public void setQq(String qq) {
                this.qq = qq;
            }

            public String getIntro() {
                return intro;
            }

            public void setIntro(String intro) {
                this.intro = intro;
            }

            public static class GradeBean implements Parcelable {
                /**
                 * uid : null
                 * total : null
                 * id : 1
                 * time : 1506756205000
                 * flag : null
                 * contentid : null
                 * page : null
                 * name : 王五
                 * img : null
                 * cname : null
                 * rows : null
                 */

                private String uid;
                private String total;
                private int id;
                private long time;
                private String flag;
                private String contentid;
                private String page;
                private String name;
                private String img;
                private String cname;
                private String rows;

                public String getUid() {
                    return uid;
                }

                public void setUid(String uid) {
                    this.uid = uid;
                }

                public String getTotal() {
                    return total;
                }

                public void setTotal(String total) {
                    this.total = total;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public long getTime() {
                    return time;
                }

                public void setTime(long time) {
                    this.time = time;
                }

                public String getFlag() {
                    return flag;
                }

                public void setFlag(String flag) {
                    this.flag = flag;
                }

                public String getContentid() {
                    return contentid;
                }

                public void setContentid(String contentid) {
                    this.contentid = contentid;
                }

                public String getPage() {
                    return page;
                }

                public void setPage(String page) {
                    this.page = page;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getImg() {
                    return img;
                }

                public void setImg(String img) {
                    this.img = img;
                }

                public String getCname() {
                    return cname;
                }

                public void setCname(String cname) {
                    this.cname = cname;
                }

                public String getRows() {
                    return rows;
                }

                public void setRows(String rows) {
                    this.rows = rows;
                }

                @Override
                public int describeContents() {
                    return 0;
                }

                @Override
                public void writeToParcel(Parcel dest, int flags) {
                    dest.writeString(this.uid);
                    dest.writeString(this.total);
                    dest.writeInt(this.id);
                    dest.writeLong(this.time);
                    dest.writeString(this.flag);
                    dest.writeString(this.contentid);
                    dest.writeString(this.page);
                    dest.writeString(this.name);
                    dest.writeString(this.img);
                    dest.writeString(this.cname);
                    dest.writeString(this.rows);
                }

                public GradeBean() {
                }

                protected GradeBean(Parcel in) {
                    this.uid = in.readString();
                    this.total = in.readString();
                    this.id = in.readInt();
                    this.time = in.readLong();
                    this.flag = in.readString();
                    this.contentid = in.readString();
                    this.page = in.readString();
                    this.name = in.readString();
                    this.img = in.readString();
                    this.cname = in.readString();
                    this.rows = in.readString();
                }

                public static final Parcelable.Creator<GradeBean> CREATOR = new Parcelable.Creator<GradeBean>() {
                    @Override
                    public GradeBean createFromParcel(Parcel source) {
                        return new GradeBean(source);
                    }

                    @Override
                    public GradeBean[] newArray(int size) {
                        return new GradeBean[size];
                    }
                };
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(this.id);
                dest.writeString(this.tcard);
                dest.writeString(this.status);
                dest.writeString(this.stars);
                dest.writeParcelable(this.grade, flags);
                dest.writeString(this.ptime);
                dest.writeString(this.tcardimg);
                dest.writeString(this.qq);
                dest.writeString(this.intro);
            }

            public TeacherBean() {
            }

            protected TeacherBean(Parcel in) {
                this.id = in.readInt();
                this.tcard = in.readString();
                this.status = in.readString();
                this.stars = in.readString();
                this.grade = in.readParcelable(GradeBean.class.getClassLoader());
                this.ptime = in.readString();
                this.tcardimg = in.readString();
                this.qq = in.readString();
                this.intro = in.readString();
            }

            public static final Parcelable.Creator<TeacherBean> CREATOR = new Parcelable.Creator<TeacherBean>() {
                @Override
                public TeacherBean createFromParcel(Parcel source) {
                    return new TeacherBean(source);
                }

                @Override
                public TeacherBean[] newArray(int size) {
                    return new TeacherBean[size];
                }
            };
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.total);
            dest.writeString(this.sex);
            dest.writeString(this.weight);
            dest.writeString(this.cardimg);
            dest.writeString(this.cardnum);
            dest.writeString(this.nickname);
            dest.writeString(this.passWord);
            dest.writeString(this.header);
            dest.writeString(this.rows);
            dest.writeString(this.course);
            dest.writeInt(this.id);
            dest.writeLong(this.time);
            dest.writeString(this.school);
            dest.writeString(this.invitecode);
            dest.writeString(this.page);
            dest.writeInt(this.age);
            dest.writeString(this.name);
            dest.writeInt(this.role);
            dest.writeString(this.gradeid);
            dest.writeParcelable(this.teacher, flags);
            dest.writeString(this.mobile);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.total = in.readString();
            this.sex = in.readString();
            this.weight = in.readString();
            this.cardimg = in.readString();
            this.cardnum = in.readString();
            this.nickname = in.readString();
            this.passWord = in.readString();
            this.header = in.readString();
            this.rows = in.readString();
            this.course = in.readString();
            this.id = in.readInt();
            this.time = in.readLong();
            this.school = in.readString();
            this.invitecode = in.readString();
            this.page = in.readString();
            this.age = in.readInt();
            this.name = in.readString();
            this.role = in.readInt();
            this.gradeid = in.readString();
            this.teacher = in.readParcelable(TeacherBean.class.getClassLoader());
            this.mobile = in.readString();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.status);
        dest.writeTypedList(this.data);
    }

    public Stulist() {
    }

    protected Stulist(Parcel in) {
        this.status = in.readInt();
        this.data = in.createTypedArrayList(DataBean.CREATOR);
    }

    public static final Parcelable.Creator<Stulist> CREATOR = new Parcelable.Creator<Stulist>() {
        @Override
        public Stulist createFromParcel(Parcel source) {
            return new Stulist(source);
        }

        @Override
        public Stulist[] newArray(int size) {
            return new Stulist[size];
        }
    };
}
